<?php



namespace rocotito\entity;

include 'mysql.php';

/**
 * @author Alan
 *
 */

 class place {
 	private $cod_place;
 	private $name;
 	private $phone;
 	private $delivery;
 	private $website;
 	private $email;
 	private $description;
 	private $address = array();
 	private $typefood = array();
 	
 	/**
	 * @param multitype: $address
	 */
	public function setAddress($address) {
		$this->address = $address;
	}

	/**
	 * @param multitype: $typefood
	 */
	public function setTypefood($typefood) {
		$this->typefood = $typefood;
	}

	/**
	 * @return the $cod_place
	 */
	public function getCod_place() {
		return $this->cod_place;
	}

	/**
	 * @return the $name
	 */
	public function getName() {
		return $this->name;
	}

	/**
	 * @return the $phone
	 */
	public function getPhone() {
		return $this->phone;
	}

	/**
	 * @return the $delivery
	 */
	public function getDelivery() {
		return $this->delivery;
	}

	/**
	 * @return the $website
	 */
	public function getWebsite() {
		return $this->website;
	}

	/**
	 * @return the $email
	 */
	public function getEmail() {
		return $this->email;
	}

	/**
	 * @return the $description
	 */
	public function getDescription() {
		return $this->description;
	}

	/**
	 * @return the $address
	 */
	public function getAddress() {
		return $this->address;
	}

	/**
	 * @return the $typefood
	 */
	public function getTypefood() {
		return $this->typefood;
	}

	/**
	 * @param int $cod_place
	 */
	public function setCod_place($cod_place) {
		$this->cod_place = $cod_place;
	}

	/**
	 * @param string $name
	 */
	public function setName($name) {
		$this->name = $name;
	}

	/**
	 * @param string $phone
	 */
	public function setPhone($phone) {
		$this->phone = $phone;
	}

	/**
	 * @param string $delivery
	 */
	public function setDelivery($delivery) {
		$this->delivery = $delivery;
	}

	/**
	 * @param string $website
	 */
	public function setWebsite($website) {
		$this->website = $website;
	}

	/**
	 * @param string $email
	 */
	public function setEmail($email) {
		$this->email = $email;
	}

	/**
	 * @param string $description
	 */
	public function setDescription($description) {
		$this->description = $description;
	}

	/* __construct inicialize class place without @param
	 * 
	 */ 	
 	/** __construct inicialize class place
 	 * @param int $cod_place
 	 * @param string $name
 	 * @param string $phone
 	 * @param string $delivery
 	 * @param string $website
 	 * @param string $email
 	 * @param string $description
 	 */
 	public function place($cod_place,$name,$phone,$delivery,$website,$email,$description){
 		$this->setCod_place($cod_place);
 		$this->setName($name);
 		$this->setPhone($phone);
 		$this->setDelivery($delivery);
 		$this->setWebsite($website);
 		$this->setEmail($email);
 		$this->setDescription($description);
 	}
 	

 }
 
 class address {
 	
 	private $cod_address;
	private $place_cod_place;
	private $address_line_1;
	private $address_line_2;
	private $zip;
	private $reference;
	private $phone;

	
	public function address($cod_address,$place_cod_place,$address_line_1,$address_line_2,$zip,$reference,$phone){
		$this->setCod_address($cod_address);
		$this->setPlace_cod_place($place_cod_place);
		$this->setAddress_line_1($address_line_1);
		$this->setAddress_line_2($address_line_2);
		$this->setZip($zip);
		$this->setReference($reference);
		$this->setPhone($phone);
	}
	
	/**
	 *
	 * @return the $cod_address
	 */
	public function getCod_address() {
		return $this->cod_address;
	}
	
	/**
	 *
	 * @return the $place_cod_place
	 */
	public function getPlace_cod_place() {
		return $this->place_cod_place;
	}
	
	/**
	 *
	 * @return the $address_line_1
	 */
	public function getAddress_line_1() {
		return $this->address_line_1;
	}
	
	/**
	 *
	 * @return the $address_line_2
	 */
	public function getAddress_line_2() {
		return $this->address_line_2;
	}
	
	/**
	 *
	 * @return the $zip
	 */
	public function getZip() {
		return $this->zip;
	}
	
	/**
	 *
	 * @return the $reference
	 */
	public function getReference() {
		return $this->reference;
	}
	
	/**
	 *
	 * @return the $phone
	 */
	public function getPhone() {
		return $this->phone;
	}
	
	/**
	 *
	 * @param $cod_address field_type       	
	 */
	public function setCod_address($cod_address) {
		$this->cod_address = $cod_address;
	}
	
	/**
	 *
	 * @param $place_cod_place field_type       	
	 */
	public function setPlace_cod_place($place_cod_place) {
		$this->place_cod_place = $place_cod_place;
	}
	
	/**
	 *
	 * @param $address_line_1 field_type       	
	 */
	public function setAddress_line_1($address_line_1) {
		$this->address_line_1 = $address_line_1;
	}
	
	/**
	 *
	 * @param $address_line_2 field_type       	
	 */
	public function setAddress_line_2($address_line_2) {
		$this->address_line_2 = $address_line_2;
	}
	
	/**
	 *
	 * @param $zip field_type       	
	 */
	public function setZip($zip) {
		$this->zip = $zip;
	}
	
	/**
	 *
	 * @param $reference field_type       	
	 */
	public function setReference($reference) {
		$this->reference = $reference;
	}
	
	/**
	 *
	 * @param $phone field_type       	
	 */
	public function setPhone($phone) {
		$this->phone = $phone;
	}

}

 class typefood{
	private $cod_type_food;
	private $name;
	
	public function typefood($cod_type_food,$name){
		$this->cod_type_food = $cod_type_food;
		$this->name = $name;
	}
	
	/**
	 * @return the $cod_type_food
	 */
	public function getCod_type_food() {
		return $this->cod_type_food;
	}

	/**
	 * @return the $name
	 */
	public function getName() {
		return $this->name;
	}

	/**
	 * @param field_type $cod_type_food
	 */
	public function setCod_type_food($cod_type_food) {
		$this->cod_type_food = $cod_type_food;
	}

	/**
	 * @param field_type $name
	 */
	public function setName($name) {
		$this->name = $name;
	}

}

 
 ?>